<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>06-小米首页案例</title>
  <style>
    .box {
      width: 1200px;
      height: 460px;
      background-color: pink;
      /* 浏览器居中显示 */
      margin: 0 auto;
    }

    .left {
      float: left;
      width: 230px;
      height: 460px;
      background-color: purple;
    }

    .right {
      float: left;
      width: 970px;
      height: 460px;
      background-color: rosybrown;
    }
  </style>
</head>

<body>

  <div class="box">
    <div class="left">我是左侧</div>
    <div class="right">我是右侧</div>
  </div>

</body>

</html>